<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

//跨域问题
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Headers:Origin, X-Requested-With, Content-Type, Accept,USER_ID,TOKEN");
header("Access-Control-Allow-Methods:HEAD, GET, POST, DELETE, PUT, OPTIONS");

header('Access-Control-Allow-Headers:token,lang,tokenpassword,Origin, Content-Type, Cookie, Accept, application/json');
header('Access-Control-Allow-Credentials:true');
header('Access-Control-Expose-Headers:token,lang,tokenpassword');
// [ 应用入口文件 ]
define('APP_PATH', __DIR__ . '/../application/');
// 加载框架引导文件
function dd($data){
    var_dump($data);
    die();
}
//防护XSS,SQL,代码执行，文件包含等多种高危漏洞
include APP_PATH . '/waf.php';

require __DIR__ . '/../thinkphp/start.php';
